function debounce(callback, delay) {
  var timerId = null; //定时器id
  return function () {
    clearTimeout(timerId);
    timerId = setTimeout(() => {
      callback.ap
    }, delay);
  };
}
